package team.sun.sss.service.student;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.data.web.SpringDataWebProperties;
import org.springframework.stereotype.Service;
import team.sun.sss.dao.student.StudentDao;
import team.sun.sss.pojo.student.Student1;

import java.awt.print.Pageable;
import java.util.List;

@Service
public class StudentServiceImpl implements StudentService{
    @Autowired
    StudentDao studentDao;
    //学工获取学生列表
    @Override
    public List<Student1> getStudentAll() {
        return studentDao.studentList();
    }
    //辅导员获取学生列表
    @Override
    public List<Student1> getInstructorAll(String instructor) {
        return studentDao.selectStuByInstructor(instructor);

    }
}
